package com.test.dao;

import com.test.domain.Choice;

import java.util.List;

public interface ChoiceDao {

    //获取数量通过顾客手机号和商品号
    Integer getCountByCustomerPhoneNumberAndDishNumber(String customerPhoneNumber,String dishNumber);

    //默认加入购物车
    void insertChoice(String customerPhoneNumber,String dishNumber);

    //将已添加的数量加一
    void updateChoiceDishNum(String customerPhoneNumber,String dishNumber);

    //将已添加的数量减一
    void updateChoiceDishNumS(String customerPhoneNumber,String dishNumber);

    //删除已选择的菜品
    void deleteChoiceByDishNumberAndCustomerPhoneNumber(String dishNumber,String customerPhoneNumber);

    //存储过程，支付并创建订单
    void createOrder(String accountNumber,String allAddress,String dishNumber,String orderNumber);


}
